/*
pGina ldapAuth code - based upon skeleton code for pGina plugin development
Copyright (C) 2002 Micah Cooper

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

Email: coopermj@muohio.edu
Snail Mail:
	Micah Cooper
	212A Kreger Hall
	Miami University
	Oxford OH  45056
*/
#pragma once

#include "Resource.h"
#include "afxwin.h"

// CConfigUser dialog

class CConfigUser : public CDialog
{
	DECLARE_DYNAMIC(CConfigUser)

public:
	CConfigUser(CWnd* pParent = NULL);   // standard constructor
	virtual ~CConfigUser();
	void loadListsFromReg(void); // load the lists from the registry
	void saveListsToReg(void); // save the lists to the registry

// Dialog Data
	enum { IDD = IDD_USER_TAB };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	CString   m_NewAccount;
	CListBox  m_AccountList;
	CListBox  listWindowdGroups;
//	CComboBox ccomboboxChoiceGroups;
	bool hasLoaded;

	afx_msg void OnOK();
	afx_msg void OnAdd();
	afx_msg void OnRemove();
	afx_msg void OnSave();
	

private:
	TCHAR * regReadString(LPCTSTR);
	BOOL regWriteString(LPTSTR, LPCTSTR);
	void regDelValue(LPCTSTR);
public:
	afx_msg void OnEnChangeNewadmin();
	afx_msg void OnLbnSelchangeAdminlist();
};
